package domin;

import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;

import java.io.Serializable;
@Setter
@Getter
@Slf4j
public final class OrdinaryUser implements Comparable<OrdinaryUser>,Serializable{
    private Integer id;
    private String no;
    private String name;
    private String contactInformation;
    private String appointmentInformation;
    private String code;
    private String email;
    private int status;
    public OrdinaryUser(Integer id,String no,String name,String contactInformation,String appointmentInformation) {
        super();
        this.id = id;
        this.no = no;
        this.name = name;
        this.appointmentInformation = appointmentInformation;
        this.contactInformation = contactInformation;
    }
    public OrdinaryUser(String no,String contactInformation, String appointmentInformation) {
        super();
        this.no = no;
        this.contactInformation = contactInformation;
        this.appointmentInformation = appointmentInformation;
    }
    public OrdinaryUser(String name){
        this.name = name;
    }

    public OrdinaryUser() {
    }

    public Integer getId() {
        return id;
    }
    public void setId(Integer id) {
        this.id = id;
    }
    public void setNo(String no) {
        this.no = no;
    }
    public void setContactInformation(String contactInformation){this.contactInformation = contactInformation;}
    public void setAppointmentInformation(String appointmentInformation){this.appointmentInformation = appointmentInformation;}


    @Override
    public int compareTo(OrdinaryUser o) {
        // TODO Auto-generated method stub
        return this.id - o.id;
    }
    public String toString()
    {
        final String TAB = "    ";

        String retValue = "";

        retValue = "Title ( "
                + super.toString() + TAB
                + "id = " + this.id + TAB
                + "no = " + this.no + TAB
                + "name = " + this.name + TAB
                + "appointmentInformation = " + this.appointmentInformation + TAB
                + "contactInformation" + this.contactInformation + TAB
                + " )";

        return retValue;
    }


}
